package com.wechat.admin.common;

/**
 * @Author:sjb
 * @CreateTime:2024-12-23
 * @Description: 常量
 * @Version：1.0
 */
public interface CommonConstants {



    public static final String ADMIN = "admin";

    public static final String USER = "user";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    public static final String AUTHORIZATION = "Authorization";

    /**
     * 成功返回码
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败返回码
     */
    public static final Integer FAILED = 500;

    /**
     * 成功响应
     */
    public static final String SUCCESS_MSG = "操作成功";

    public static final String PROCESSING_MSG = "请求处理中，请勿重复请求";


    /**
     * token 状态
     */
    public interface TOKEN_STATUS{

        // 未被分配
        public static final Integer UNASSIGNED = 0;
        // 已被分配
        public static final Integer ASSIGNED = 1;
        // 已被使用
        public static final Integer USED = 2;
    }


    /**
     * 用户与被申请的设备关系
     */
    public interface USE_DEVICE_REL_STATUS{

        // 被此用户使用
        public static final Integer USED_BY_USER = 1;
        // 与此用户解绑掉
        public static final Integer UNBINDING_BY_USER = 0;
    }
}
